<template>
  <div>
    <h1>组合式API +{{ message }}</h1>
    <h1>数字：{{ count }}</h1>
    <button @click="add">+</button>
    <button @click="sub">-</button>
    <A22></A22>
  </div>
</template>
<script setup>
import { ref, computed } from "vue";

const count = ref(0);
const message = ref("Hello World22");
const add = () => {
  count.value += 2;
};
const sub = () => {
  count.value -= 2;
};
</script>
